package com.yty.eb.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yty.eb.mapper.EbProductMapper;
import com.yty.eb.model.EbProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EbProductService {
    @Autowired
    EbProductMapper ebProductMapper;

    public Page<EbProduct> page(int psize, int pagesize) {
        Page<EbProduct> page = new Page(psize, pagesize);
        Page<EbProduct> productPage = ebProductMapper.selectPage(page, null);
        return productPage;

    }
}
